<!DOCTYPE html>
<html lang="zh-CN">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <link rel="stylesheet" href="../../assets/css/base.css">
  <style>
    .flex-container {
      display: flex;
      width: 300px;
      height: 300px;
      border: 1px solid black;
    }

    .flex-container>div {
      width: 100px;
      height: 100px;
      color: white;
      font-size: 20px;
      line-height: 100px;
      text-align: center;
    }

    .flex-container>div:nth-child(1) {
      background-color: red;
    }

    .flex-container>div:nth-child(2) {
      background-color: orange;
    }

    .flex-container>div:nth-child(3) {
      background-color: green;
    }

    .row {
      flex-direction: row;
    }

    .row-reverse {
      flex-direction: row-reverse;
    }

    .column {
      flex-direction: column;
    }

    .column-reverse {
      flex-direction: column-reverse;
    }
  </style>
</head>

<body>
  <div class="float-left margin-left-10">
    <p class="title">row</p>
    <div class="flex-container row">
      <div>1</div>
      <div>2</div>
      <div>3</div>
    </div>
  </div>

  <div class="float-left margin-left-10">
    <p class="title">row-reverse</p>
    <div class="flex-container row-reverse">
      <div>1</div>
      <div>2</div>
      <div>3</div>
    </div>
  </div>

  <div class="float-left margin-left-10">
    <p class="title">column</p>
    <div class="flex-container column">
      <div>1</div>
      <div>2</div>
      <div>3</div>
    </div>
  </div>

  <div class="float-left margin-left-10">
    <p class="title">column-reverse</p>
    <div class="flex-container column-reverse">
      <div>1</div>
      <div>2</div>
      <div>3</div>
    </div>
  </div>
</body>

</html>